<?php echo $header; ?>
<div id="content">
   <div class="breadcrumb">
    <?php echo $this->breadCrumbs(); ?>
  </div>
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/product.png" alt="" />处理函数</h1>
      <div class="buttons">
      <a href="<?php echo UA('tool/collection/funcs');?>&action=add" class="button"><span>添加</span></a>
      <a onclick="$('#form').submit();" class="button"><span>删除</span></a>
      </div>
    </div>
    <div class="content">
      <form action="<?php echo UA('tool/collection/funcs')?>&action=delete" method="post" enctype="multipart/form-data" id="form">
        <table class="list">
          <thead>
            <tr height="30">
              <td width="1" style="text-align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);" /></td>
			  <td>函数/文件</td>
			  <td>操作</td>
            </tr>
          </thead>
          <tbody>
            <?php if ($funcs) { ?>
            <?php
            	foreach ($funcs as $func) {
            ?>
            <tr  height="30" onmouseover="this.className='on';" onmouseout="this.className='';">
              <td style="text-align: center;">
              <input type="checkbox" name="selected[]" value="<?php echo $func; ?>" /></td>
			  <td><?php echo $func;?></td>
			  <td>
			  	[<a href="<?php echo UA("tool/collection/funcs")?>&func=<?php echo $func;?>&action=edit">编辑</a>]
			  </td>
            </tr>
            <?php }} ?>
          </tbody>
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>